package com.zimin.redis.constant;

/**
 * 管理redis公共的key常量
 *
 * @author zimin
 * @since 2021/11/4 2:05 下午
 */
public class BaseRedisConstant {

    /**
     * 幂等性前缀
     */
    public static final String IDEMPOTENCE_PREFIX = "IDEMPOTENCE:%s";

    public static final Integer SECOND = 1;
    public static final Integer MINUTE = 60 * SECOND;
    public static final Integer HALF_AN_HOUR= 30 * MINUTE;
    public static final Integer HOUR = 60 * MINUTE;
    public static final Integer DAY = 24 * HOUR;

}
